<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;
use Kra8\Snowflake\HasSnowflakePrimary;
use Illuminate\Database\Eloquent\SoftDeletes;

class DeviceBill extends Model
{
    use SoftDeletes;
    use HasSnowflakePrimary;
    protected $fillable = [
        'origin_order_id',
        'device_group_id',
        'device_id',
        'fee',
        'type',
        'remark',
        'channel'
    ];
    public function group()
    {
        return $this->belongsTo('App\Models\Group', 'device_group_id');
    }
    public function device()
    {
        return $this->belongsTo('App\Models\Device', 'device_id');
    }
}
